package pojazdy;

/**
 * Autor: Daniel Michalski
 * Data: 01.08.13
 */

public abstract class Pojazd {
    private int predkosc;
    private String marka;

    public Pojazd(int predkosc, String marka) {
        this.predkosc = predkosc;
        this.marka = marka;
    }

    public int getPredkosc(){
        return predkosc;
    }

    public void setPredkosc(int predkosc){
        this.predkosc = predkosc;
    }

    public String getMarka(){
        return marka;
    }
    public void setMarka(){
        this.marka = marka;
    }

    public String toString(){
        return "Pojazd[" +
                "marka=" + marka +
                " ,predkosc=" + predkosc + "km/h" +
                "]";
    }
}
